package com.cvpoc.service;

import java.io.IOException;
import java.net.MalformedURLException;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPathExpressionException;

import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServer;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.common.SolrDocumentList;
import org.xml.sax.InputSource;

import com.cvpoc.exception.BusinessException;

public interface SolrService {
	public void solrServerFullImportRequest(boolean clean) throws BusinessException, MalformedURLException, IOException;
	public void solrServerDeltaImportRequest() throws BusinessException, IOException;
	public String solrQueryRequest(String query) throws BusinessException, IOException;
	public InputSource solrDocumentsRequest(String xmldata) throws BusinessException, ParserConfigurationException;
	public String solrXpathRequest(InputSource is, String expression) throws BusinessException, XPathExpressionException;
	public SolrServer solrServer() throws BusinessException, SolrServerException, IOException;
	public SolrDocumentList SolrServerDocuments(SolrServer solrServer, SolrQuery solrQuery) throws BusinessException, SolrServerException;
	public boolean isSolrEnabled();
}
